<template>
  <div>
     购物车组件
     <h1>{{za}}---{{zb}}</h1>
     <hr>
     <cart-one :flist="list" @sendata="getdata"></cart-one>
     <hr>
     <cart-two></cart-two>
  </div>
</template>
<script>
import CartOne from './Cartone.vue'
import CartTwo from './CartTwo.vue'
export default {
   directives:{},
   data(){
     return{
       list:["你好坏，李焕英","哈利波特","还猪格格"],
       za:"",
       zb:"",
       mykk:""
     }
   },
   created() {
      // this.mykk=this.$route.params.kk;
      this.mykk=this.$route.query.pid;
   },
   methods: {
     getdata(a,b){
       this.za=a;
       this.zb=b;
     }
   },
   components:{
     CartOne,
     CartTwo
   }
}
</script>

<style lang="less" scoped>
  
</style>